<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Oculus Setup</title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" Content="no-cache">
<meta http-equiv="Expires" content="-1">
<style type="text/css">
body { background-color: #ffffff; }
body, p, ol, ul, td, tr {
font-family: verdana, arial, helvetica, sans-serif;
font-size:   13px;
line-height: 18px; 
color: #222222;}
TABLE {   border: 0px; border-collapse: collapse; padding: 0px }
TR { border: 0px; }
TD  { border: 0px; }
a { color: #2522c5; text-decoration: none; border-bottom: none; } 
a:link { color: #2522c5; text-decoration: none; border-bottom: none; }
a:visited { color: #2522c5; text-decoration: none; border-bottom: none; }
a:hover { color: #2522c5; background-color: #bbbbbb; text-decoration: none;  border-bottom: none;} 
.message { color: green; }
</style>
<script src="javascript/server.js" type="text/javascript"></script>
<script src="flash/AC_OETags.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 28;
// -----------------------------------------------------------------------------
// -->
</script>
</head>
<body onload="initialize_loaded();">
<table align="center"><tr valign="top"><td style="width: 320px;">
<div id="video">
<script language="JavaScript" type="text/javascript">
<!--
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6, 0, 65);

// Version check based upon the values defined in globals
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

if ( hasProductInstall && !hasRequestedVersion ) {
	// DO NOT MODIFY THE FOLLOWING FOUR LINES
	// Location visited after installation is complete if installation is required
	var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
	var MMredirectURL = window.location;
    document.title = document.title.slice(0, 47) + " - Flash Player Installation";
    var MMdoctitle = document.title;

	AC_FL_RunContent(
		"src", "playerProductInstall",
		"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
		"width", "400",
		"height", "300",
		"align", "left",
		"id", "oculus_grabber",
		"quality", "high",
		"wmode","transparent",
		"bgcolor", "#869ca7",
		"name", "oculus_grabber",
		"allowScriptAccess","sameDomain",
		"type", "application/x-shockwave-flash",
		"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
} else if (hasRequestedVersion) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
			"src", "flash/oculus_grabber?="+ new Date().getTime(),
			"width", "400",
			"height", "300",
			"id", "oculus_grabber",
			"quality", "high",
			"wmode","transparent",
			"bgcolor", "#869ca7",
			"name", "oculus_grabber",
			"allowScriptAccess","sameDomain",
			"type", "application/x-shockwave-flash",
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = 'Alternate HTML content should be placed here. '
  	+ 'This content requires the Adobe Flash Player. '
   	+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
    document.write(alternateContent);  // insert non-flash content
  }
// -->
</script>
<noscript>
  	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
		id="oculus_grabber" width="100%" height="100%"
		codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
		<param name="movie" value="flash/oculus_grabber.swf" />
		<param name="quality" value="high" />
		<param name="bgcolor" value="#869ca7" />
		<param name="allowScriptAccess" value="always" />
		<embed src="flash/oculus_grabber.swf" quality="high" bgcolor="#869ca7"
			width="100%" height="100%" name="oculus_grabber" align="middle"
			play="true"
			loop="false"
			quality="high"
			wmode="transparent"
			allowScriptAccess="sameDomain"
			type="application/x-shockwave-flash"
			pluginspage="http://www.adobe.com/go/getflashplayer">
		</embed>
	</object>
</noscript>
</div>
Webcam video should be showing in this window
&nbsp; <a href="javascript: ifnotshow();" target="_top"
style="font-size: 11px">if not?</a><br> 
<div id="ifnot" style="display: none">
Allow camera and mic access if prompted, then right click in window, choose SETTINGS, and check REMEMBER box.
<a href="javascript: document.getElementById('ifnot').style.display='none';">hide</a>
</div>
<br>
<div id="messagebox" class="message" > </div>
</td>

<td style="padding-left: 8px;">
<img src="images/oculus_logo.gif"><br>
&nbsp;<span style="color: #888888;">SETUP</span>
<table><tr><td style="height: 6px"></tr></table>
admin user:  <span id="username"></span>
<a id="changeuserboxlink" href="javascript: userbox('show');">change</a><br>
<div id="changeuserbox" style="display: none">
username: <input id="newusername" class="inputbox" type="text" size="10" ><br>
password: <input id="userpass" type="password" name="password"size="10" ><br>
password again: <input id="userpassagain" type="password" name="password"size="10" ><br>

&nbsp; <a href="javascript: userbox('hide');">hide</a><br>

</div>
oculus hardware: <span id="comport">...</span><br>
<div id="lightdiv" style="display: none">oculus lights: <span id="lightport">...</span><br></div>
battery <span id="battery">... please wait</span><br>

http port*: <input id="httpport" class="inputbox" type="text" size="10" ><br>
rtmp port*: <input id="rtmpport" class="inputbox" type="text" size="10" ><br>
&nbsp; (*changes to ports require application restart to take effect)
<table><tr><td style="height: 6px"></tr></table>
Network addresses (for reference, router setup):<br>
&nbsp; internal IP: <span id="lanaddress">...</span><br>
&nbsp; external IP: <span id="wanaddress">...</span><br>
<table><tr><td style="height: 6px"></tr></table>
Skip this screen next time
<input id="skipsetup" type="checkbox" name="skipsetup" checked="checked"><br>
<table><tr><td style="height: 6px"></tr></table>
<a href="javascript: saveandlaunch();">SAVE SETTINGS and LAUNCH</a><br>
<table><tr><td style="height: 6px"></tr></table>
<a href="initialize.html" target="_top">revert to last saved settings</a><br>
<a href="javascript: factoryreset();">restore factory settings</a><br>
<a href="javascript: restart();">restart</a><br>
<a href="javascript: quit();">quit<a/><br>

</td>
</tr></table>

<div style="position: fixed; bottom: 5px; right: 40px">
<a href="http://www.xaxxon.com" style="color: #999999; font-size: 11px" target="_blank">&copy; Xaxxon</a>
</div>

<!--  debugbox -->
<div id="debugbox" style="position: absolute; z-index: 100; left: 10px; top: 10px"></div>

</body>
</html>
